
<h1 class="namespace">${data.namespace}</h1>
<div class="namespace_type">object</div>

% if hasattr(data, 'since'):
<div class="since">${data.since}</div>
%endif

% if hasattr(data, 'platforms'):
<div class="platforms">
% for p in data.platforms:
	<span class="${p}">&nbsp;&nbsp;&nbsp;</span>
%endfor
</div>
%endif

% if data.deprecated:
<div class="deprecated">
	This function was deprecated in <strong>${data.deprecated['version']}</strong>.
	${data.deprecated['reason']}
</div>
% endif

<div class="description">
${data.description}
</div>

% if len(data.methods) != 0:
<h3>Methods</h3>
<table>
% for method in data.methods:
	<tr>
		<td class="name">
			<a href="${method.filename}.html">${method.name()}</a>
		</td>
		<td class="description">${method.description}</td>
	</tr>
% endfor
</table>
% endif

% if len(data.properties) != 0:
<h3>Properties</h3>
<table>
<tr>
	<th>Name</th>
	<th>Type</th>
	<th>Description</th>
</tr> 
% for prop in data.properties:
<tr>
	<td class="name"><a href="${prop.filename}.html">${prop.name()}</a></td>
	<td class="type">${prop.returns}</td>
	<td class="description">${prop.description}</td>
</tr>
% endfor
</table>
% endif

% if len(data.events)!= 0:
<h3>Events</h3>
<table>
<tr>
	<th>Name</th>
	<th>Description</th>
</tr> 
% for event in data.events:
<tr>
	<td class="name">${event['name']}</a></td>
	<td class="description">
		${event['description']}
% if 'properties' in event:
		<h4>Event properties</h4>
		<table class="event">
% for prop in event['properties']:
% for name in prop:
			<tr><td class="name">${name}</td><td>${prop[name]}</td></tr>
% endfor
% endfor
		</table>
	</td>
% endif
</tr>
% endfor
</table>
% endif

% if len(data.examples) > 0:
<h3>Code Examples</h3>

% for example in data.examples :
<h4 class="code_example_title">${example['description']}</h4>
<div class="code_example">${example['code']}</div>
% endfor

% endif


% if hasattr(data, 'notes'):
<h3>Notes</h3>
<div>${data.notes}</div>
% endif
